Constructor vs method in Java